projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a62437d
)
* src/inotify.c (Finotify_add_watch): aspect can also be a symbol.
author
Michael Albinus
<michael.albinus@gmx.de>
Tue, 28 Mar 2017 11:38:49 +0000
(13:38 +0200)
committer
Michael Albinus
<michael.albinus@gmx.de>
Tue, 28 Mar 2017 11:38:49 +0000
(13:38 +0200)
src/inotify.c
patch
|
blob
|
history
diff --git
a/src/inotify.c
b/src/inotify.c
index cb24e827626b16416c7f054313630c7db52d78e9..004689bd4b511fe63ee6ed697f25c9e5a280c0f9 100644
(file)
--- a/
src/inotify.c
+++ b/
src/inotify.c
@@
-396,7
+396,9
@@
IN_ONLYDIR */)
(Lisp_Object filename, Lisp_Object aspect, Lisp_Object callback)
{
Lisp_Object encoded_file_name;
- bool dont_follow = ! NILP (Fmemq (Qdont_follow, aspect));
+ bool dont_follow = (CONSP (aspect)
+ ? ! NILP (Fmemq (Qdont_follow, aspect))
+ : EQ (Qdont_follow, aspect));
int wd = -1;
uint32_t mask = (INOTIFY_DEFAULT_MASK
| (dont_follow ? IN_DONT_FOLLOW : 0));